<?php
/**
 * Created by PhpStorm.
 * User: 我型我素
 * Date: 2018/1/29
 * Time: 10:01
 */

namespace SDXApi\Model;


use Think\Model;

class ActivityMamanetModel extends Model
{
    protected $tableName = "activity_mamanet";


    public function getDataByUserId($user_id){
        $res = $this->where(array('user_id'=>$user_id))->find();
        return $res;
    }

    public function getDataByPhone($phone){
        $res = $this->where(array('phone'=>$phone))->find();
        return $res;
    }

    public function getDataByEmail($email){
        $res = $this->where(array('phone'=>$email))->find();
        return $res;
    }
}